package com.pattern.composite;


import java.util.ArrayList;
import java.util.List;

/**
 * @author 冯志立
 * @create 2019-10-31 10:31
 */
public class Department extends OrganizationComponent {

    //构造器
    public Department(String name, String des) {
        super(name, des);
    }

    @Override
    public String getName() {
        return super.getName();
    }

    @Override
    public String getDes() {
        return super.getDes();
    }

    @Override
    protected void print() {
        //所在系名称
        System.out.println(getName());
    }
}
